package judesart.app.shared;

@SuppressWarnings("deprecation")
public class SearchResult_FieldSerializer {
  private static native int getCount(judesart.app.shared.SearchResult instance) /*-{
    return instance.@judesart.app.shared.SearchResult::count;
  }-*/;
  
  private static native void  setCount(judesart.app.shared.SearchResult instance, int value) /*-{
    instance.@judesart.app.shared.SearchResult::count = value;
  }-*/;
  
  private static native java.util.List getResults(judesart.app.shared.SearchResult instance) /*-{
    return instance.@judesart.app.shared.SearchResult::results;
  }-*/;
  
  private static native void  setResults(judesart.app.shared.SearchResult instance, java.util.List value) /*-{
    instance.@judesart.app.shared.SearchResult::results = value;
  }-*/;
  
  public static void deserialize(com.google.gwt.user.client.rpc.SerializationStreamReader streamReader, judesart.app.shared.SearchResult instance) throws com.google.gwt.user.client.rpc.SerializationException{
    setCount(instance, streamReader.readInt());
    setResults(instance, (java.util.List) streamReader.readObject());
    
  }
  
  public static native judesart.app.shared.SearchResult instantiate(com.google.gwt.user.client.rpc.SerializationStreamReader streamReader) throws com.google.gwt.user.client.rpc.SerializationException/*-{
    return @judesart.app.shared.SearchResult::new()();
  }-*/;
  
  public static void serialize(com.google.gwt.user.client.rpc.SerializationStreamWriter streamWriter, judesart.app.shared.SearchResult instance) throws com.google.gwt.user.client.rpc.SerializationException {
    streamWriter.writeInt(getCount(instance));
    streamWriter.writeObject(getResults(instance));
    
  }
  
}
